import axiosServer from '../utils/request'
/**
 * 搜索接口
 * @param {*} keywords 
 * @returns 
 */
export const RequestSearch = (keywords)=>{
    return axiosServer({
        method:'get',
        url:'/search',
        params:{
            keywords
        }
    })
}
/**
 * 热搜列表接口
 * @returns 
 */
export const RequestSearchHot = ()=>{
    return axiosServer({
        method:'get',
        url:'/search/hot',

    })
}
/**
 * 歌手搜索列表
 * @returns 
 */
export const RequestArtistList = ()=>{
    return axiosServer({
        method:'get',
        url:'/artist/list',

    })
}
/**
 * 歌手歌曲列表
 * @param {*} id
 * @returns 
 */
export const RequestArtistSongs = (id,limit=10)=>{
    return axiosServer({
        method:'get',
        url:'/artist/songs',
        params:{
            id,
            limit
        }

    })
}
/**
 * 获取歌手详情
 * @param {*} id
 * @returns 
 */
export const RequestArtistDetail = (id)=>{
    return axiosServer({
        method:'get',
        url:'/artists',
        params:{
            id
        }

    })
}
